# -*- coding: utf-8 -*-
#!/usr/bin/env python
#========================================================================
#   FileName: tutorial.py
#     Author: linh
#      Email: linh@ecallcen.com
#   HomePage: 使用suds模块调用WebService服务.
# LastChange: 2012-06-30 14:15:58
#========================================================================
from suds.client import Client
if __name__ == '__main__':
    #url='http://www.webxml.com.cn/WebServices/TraditionalSimplifiedWebService.asmx?wsdl'
    #client=Client(url)
    #print client
    #client.set_options(port='TraditionalSimplifiedWebServiceSoap12')
    #strTemp=u'刘青云'
    #result=client.service.toTraditionalChinese(strTemp)
    #print result
    ENHANCECC_URL='http://117.27.135.241:9085/enhancecc/services/ZteNgccSoapSOAP?wsdl'
    url='http://117.27.135.241:9087/EbaseAccess/webservice/ZteEbaseAccess?wsdl'
    client=Client(ENHANCECC_URL)
    print client
    
    #result=client.service.queryBySqlRequest('1','13','ebase.003','<variables> <variable1>13</variable1> </variables>','','','','','')
    #print result.resultcode
    #print result.resultinfo

